<div class="content">
    <div class="div-top">
        <span style="font-size: 20px;float:left;">{{menu_name}}</span>
        <div style="float:right;">
            <button ng-repeat="but in buttons" ng-click="clickBtn(but.event)" class="btn btn-{{but.style}}"><i class="iconfont {{but.img}}"></i>&nbsp;{{but.name}}</button>
        </div>
    </div>
    <form class="div-find form-inline">
        <div class="form-group">
            <label class="form-label">表名：</label>
            <input ng-model="form.forms" type="text" class="form-control" placeholder="表名"/>
        </div>
        <div class="form-group">
            <label class="form-label">列名：</label>
            <input ng-model="form.cols" type="text" class="form-control" placeholder="列名"/>
        </div>
        <div class="form-group">
            <label class="form-label">注释：</label>
            <input ng-model="form.names" type="text" class="form-control" placeholder="注释"/>
        </div>
        <div class="form-group">
            <label class="form-label">是否非空：</label>
            <select class="form-control" ng-model="form.ifnull">
                <option value="">==请选择==</option>
                <option value="0">否</option>
                <option value="1">是</option>
            </select>
        </div>
        <button ng-click="select()" type="submit" class="btn btn-secondary"><i class="iconfont icon-search"></i>&nbsp;查询</button>
    </form>

    <div class="div-table">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th class="table-th-checkbox" ><input type="checkbox" ng-click="checkAll($event.target)" /></th>
                <th column="form" class="sorting" ng-click="order($event.target)">表名</th>
                <th column="col" class="sorting" ng-click="order($event.target)">列名</th>
                <th column="name" class="sorting" ng-click="order($event.target)">注释</th>
                <th column="remarks" class="sorting" ng-click="order($event.target)">备注</th>
                <th column="type" class="sorting" ng-click="order($event.target)">类型</th>
                <th column="length" class="sorting" ng-click="order($event.target)">最大长度</th>
                <th column="sort" class="sorting" ng-click="order($event.target)">排序</th>
                <th column="fk_rule" class="sorting" ng-click="order($event.target)">规则外键编号</th>
                <th column="fk_form" class="sorting" ng-click="order($event.target)">外键关系表名</th>
                <th column="ifnull" class="sorting" ng-click="order($event.target)">是否非空</th>
                <th column="ifsole" class="sorting" ng-click="order($event.target)">是否不可重复</th>
                <th column="ifimport" class="sorting" ng-click="order($event.target)">是否导入</th>
                <th column="ifexport" class="sorting" ng-click="order($event.target)">是否导出</th>
            </tr>
            </thead>
            <tbody ng-switch on="page.current_num">
            <tr ng-switch-when="0">
                <td colspan="100" >查询无记录</td>
            </tr>
            <tr ng-repeat="row in rows" ng-click="optData($event.currentTarget)">
                <td>
                    <input type="checkbox" name="dataPk" value="{{row.id}}" />
                </td>
                <td>{{row.form}}</td>
                <td>{{row.col}}</td>
                <td>{{row.name}}</td>
                <td>{{row.remarks}}</td>
                <td>{{row.type}}</td>
                <td>{{row.length}}</td>
                <td>{{row.sort}}</td>
                <td>{{row.fk_rule}}</td>
                <td>{{row.fk_form}}</td>
                <td>{{row.null}}</td>
                <td>{{row.sole}}</td>
                <td>{{row.import}}</td>
                <td>{{row.export}}</td>
            </tr>
            </tbody>
        </table>
    </div>
    <div ng-include="'plugin/frame/3.0.1/html/page.html'" class="div-page" ></div>
</div>